package com.sihan.swvp.dao.jc;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.github.pagehelper.Page;
import com.sihan.swvp.dao.BaseDao;
import com.sihan.swvp.entity.jc.JcDsdw;

public interface JcDsdwDao extends BaseDao{

	public Page<Map<String, Object>> getJcDsdw(Map<String, Object> params);
	public List<Map<String, Object>> getAllJcDsdw();
	public void addJcDsdw(JcDsdw bean);
	public void updateJcDsdw(JcDsdw bean);
	public int deleteJcDsdw(@Param("id")Integer id);
	/**
	 * 验证编码和名称
	 * @param code
	 * @param dsdwName
	 * @return
	 */
	public Integer getJcDsdwValidate(@Param("code")String code,@Param("dsdwName")String dsdwName,@Param("id")Integer id);
}
